package com.zq.jichu;

/**
 * StringBuffer复习
 */
public class StringBufferTest {
    public static void main(String[] args) {
        String s ="张三是最棒的";
        StringBuffer sb = new StringBuffer(s);
//        System.out.println(sb.charAt(0));
//        System.out.println(sb.append("对吗"));
//        System.out.println(sb.reverse());
//        System.out.println(sb.replace(0,1,"小"));
//        System.out.println(sb.length());
//        System.out.println(sb.indexOf("是"));//2
//        System.out.println(sb.insert(2,3));//张三3是最棒的
    }
}
